# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fping
pkgver=4.4
pkgrel=0
pkgdesc="A utility to ping multiple hosts at once"
url="https://fping.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="https://fping.org/dist/fping-$pkgver.tar.gz"
options="suid !check" # No testsuite

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-ipv6
	make
}

package() {
	make install DESTDIR="$pkgdir"
	chmod 4755 "$pkgdir"/usr/sbin/fping*
}

sha512sums="8c9ff78edee10ce8e02a0d6189d4a2d91cc60954740c15730f8f1a17d037ee9f565828fa0dcd47a06f2746328063125704d467939d6280b44d5ac98a65e5acd0  fping-4.4.tar.gz"
